"use strict"

/**
 * 石家庄市财政局爬虫
 *  
 */

var Base = require("./base");
var sjz_spider = new Base();
sjz_spider.name = "石家庄市财政局";
sjz_spider.encode = "GBK";

sjz_spider.getPageUrl = function(pg) {
    return "http://www.sjzcz.gov.cn/column.jsp?id=1505120844877&current=" + pg;
};

sjz_spider.getItems = function($) {
    var items = [];
    $("div.lb a").each(function (index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.text();
        item.url = "http://www.sjzcz.gov.cn" + e.attr("href");
        item.source = sjz_spider.name;
        items.push(item);
    });
    return items;    
};

exports = module.exports = sjz_spider;